package hci.timemanager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class Welcome extends Activity {
	/** Called when the activity is first created. */
	private TextView textView = null;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);
		textView = (TextView) findViewById(R.id.TextView);
		textView.setOnClickListener(new TextViewListener());
	}

	class TextViewListener implements OnClickListener {

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.putExtra("from", "Welcome");
			intent.setClass(Welcome.this, Main.class);
			Welcome.this.startActivity(intent);

		}

	}

}
